/*** Trigger Name: FulfillmentTaskHistoryTrigger 
* Author: Accenture      
* Requirement/Project Name: iFULFILL
* Requirement/Project Description:SFDC should verify that the CSS system is not down prior to sending an TaskHistory outbound message.
* If the system is down then Store the error message(messages will be provided by SIL),stackTrace in the TaskHistory Object.
* If the System is up then store the success message into the TaskHistory object.
*
* **/
trigger FulfillmentTaskHistoryTrigger on Fulfillment_Step_History__c (after insert) {    
        Set<ID> taskHistoryIds=new Set<ID>();
        for(Fulfillment_Step_History__c FSH:Trigger.new){
                taskHistoryIds.add(FSH.id);
        }
        if(!taskHistoryIds.isEmpty()){        
            ifulfillWebService.processRequest(taskHistoryIds);
        }    

}